<template>
  <!--   多跨协同     -->
  <div class="collaborate-box">
    <div class="subtitle-long">{{ tableData.name }}</div>
    <div class="collaborate-basket">
      <div class="collaborate-item" v-for="(item,index) in tableData.bureau[0]" :key="index">
        <div class="collaborate-img1" :style="{background: 'url(' + item.img + ')'}"/>
        <div class="collaborate-img2">{{ item.text }}</div>
        <div class="collaborate-text1"><span class="collaborate-text2">{{ item.num }}</span>条</div>
      </div>
    </div>
    <div class="collaborate-basket">
      <div class="collaborate-item" v-for="(item,index) in tableData.bureau[1]" :key="index">
        <div class="collaborate-img1" :style="{background: 'url(' + item.img + ')'}"/>
        <div class="collaborate-img2">{{ item.text }}</div>
        <div class="collaborate-text1"><span class="collaborate-text2">{{ item.num }}</span>条</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "table_collaborate",
  data() {
    return {
      tableData: {
        name: '多跨协同',
        bureau: [
          [{
            text: '应急局',
            num: '11',
            img: require('../assets/data_right_1.png')
          },
            {
              text: '交通局',
              num: '22',
              img: require('../assets/data_right_2.png')
            },
            {
              text: '财政局',
              num: '31',
              img: require('../assets/data_right_3.png')
            }],
          [{
            text: '水务局',
            num: '34',
            img: require('../assets/data_right_4.png')
          },
            {
              text: '司法局',
              num: '31',
              img: require('../assets/data_right_5.png')
            },
            {
              text: '农业局',
              num: '16',
              img: require('../assets/data_right_6.png')
            }],
        ],
      },
    }
  },
}
</script>

<style scoped>
.collaborate-box {
  float: left;
  width: 50%;
  height: 100%;
}

.btn_bottom :hover {
  color: #F9D494;
}

.collaborate-basket {
  height: 21%;
  width: 94%;
  margin-top: 7%;
  margin-left: 6%;
}

.collaborate-item {
  float: left;
  height: 100%;
  width: 30%;
  margin-right: 3%;
}

.collaborate-img1 {
  float: left;
  height: 85%;
  width: 35%;
  overflow: hidden;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.collaborate-img2 {
  float: left;
  margin-top: 1%;
  margin-left: 3%;
  background: url("../assets/subtitle_shortest.png");
  background-size: cover;
  overflow: hidden;
  height: 42%;
  width: 55%;
  color: white;
  font-size: .8rem;
}

.collaborate-text1 {
  color: white;
  height: 45%;
  width: 45%;
  float: left;
  margin-left: 5%;
  text-align: left;
}

.collaborate-text2 {
  font-weight: 600;
  font-size: .9rem;
}
</style>
